.site-settings {
	font-size: 14px;

	fieldset {
		clear: both;
		margin-bottom: 24px;

		&:last-child {
			margin-bottom: 0;
		}
	}

	label {
		display: block;
	}

	input {
		display: inline-block;
	}

	.short-settings {
		display: block;
		min-width: 200px;
	}

	select + label {
		margin-top: 24px; // Give labels some margin when they immediately follow a select
	}

	input[type='number'] {
		padding: 0;
		width: 50px;
		text-align: center;
	}

	input[type='text'] {
		-webkit-appearance: none;
	}

	legend,
	label {
		margin-bottom: 5px;
		font-size: 14px;
		font-weight: 600;
	}

	legend + label,
	label + label,
	li label,
	input[type='checkbox'] + label,
	input[type='radio'] + label,
	label input[type='checkbox'],
	label input[type='radio'] {
		font-weight: normal;
	}

	label a,
	p a {
		text-decoration: underline;
	}

	p:last-child {
		margin-bottom: 0;
	}

	.is-primary {
		float: right;
	}

	.empty-content {
		.is-primary {
			float: none;
		}
	}

	.form-toggle__switch {
		margin-top: 3px;
	}

	p.form-setting-explanation {
		display: block;
		margin: 5px 0;
		font-size: 13px;
		font-style: italic;
		font-weight: 400;
		color: var( --color-text-subtle );

		&.is-indented {
			margin-left: 24px;
		}
	}

	.form-toggle__wrapper + p.form-setting-explanation.is-indented,
	.indented-form-field,
	.indented-form-field + p.form-setting-explanation.is-indented {
		margin-left: 36px;
	}

	p.settings-alert {
		font-weight: 400;
		color: var( --color-error );
	}

	ul li,
	ol li {
		margin-bottom: 0;
	}

	.analytics-settings {
		padding-top: 20px;

		.form-setting-explanation {
			a {
				margin-left: 6px;
			}
		}
	}

	.site-settings__analytics-stores-settings {
		padding-bottom: 20px;

		.site-settings__analytics-stores-child-settings {
			margin-top: 10px;
			margin-left: 20px;
		}
	}

	.site-settings__blogaddress-settings {
		@include breakpoint( '>660px' ) {
			display: flex;
		}

		.button {
			width: 100%;
			margin-left: 0;
			margin-top: 5px;

			@include breakpoint( '>660px' ) {
				width: 45%;
				margin-left: 16px;
				margin-top: 0;
			}
		}
	}

	.seo-settings__seo-form .form-text-input-with-affixes__prefix {
		min-width: 80px;
		text-align: center;
	}

	.seo-settings__seo-sitemap {
		word-wrap: break-word;
		word-break: break-word;
	}

	.verification-code-error {
		color: var( --color-error );
		font-weight: bold;
	}

	.seo-settings__seo-form .counted-textarea {
		&.is-exceeding-acceptable-length {
			background: var( --color-warning );
		}
	}

	.seo-settings__seo-form .seo-settings__preview-button {
		display: block;
		float: left;
		margin-right: 24px;
	}

	.seo-settings__seo-form .seo-settings__preview-explanation {
		display: block;
		float: left;
		line-height: 40px;
	}

	.seo-settings__front-page-description {
		margin-bottom: 1.5em;
	}

	fieldset.site-icon-setting {
		padding-bottom: 16px;

		@include breakpoint( '>660px' ) {
			flex: 0 0 122px;
			order: 1;
			margin-bottom: 0;
			padding-right: 24px;
			padding-bottom: 24px;
		}
	}

	.site-icon-setting__heading {
		@include breakpoint( '>660px' ) {
			justify-content: space-between;
			white-space: nowrap;
		}
	}

	.site-icon-setting__icon {
		@include breakpoint( '<660px' ) {
			float: left;
			margin-right: 8px;
		}
	}

	.site-icon-setting__button {
		@include breakpoint( '<660px' ) {
			display: block;
			margin-bottom: 8px;
		}
	}

	.card {
		&.is-placeholder div {
			@include placeholder();
		}
	}

	.site.is-compact .site__content {
		padding: 0;
	}

	.composing__publish-confirmation .form-toggle__label-content {
		font-weight: 600;
	}
}

.site-settings__analytics-settings,
.site-settings__general-settings,
.site-settings__performance-settings,
.site-settings__writing-settings,
.site-settings__traffic-settings,
.site-settings__security-settings,
.manage-connection,
.seo-settings__site-verification,
.seo-settings__help {
	.form-toggle__label {
		display: flex;
		align-items: center;
	}

	.form-toggle__switch {
		flex: 1 0 auto;
	}

	hr {
		margin: 0 -24px 1.5em;
	}
}
.site-settings__general-settings .site-settings__language-picker-notice {
	margin-bottom: 10px;
}

.site-settings__discussion-settings {
	.form-toggle__label {
		display: flex;
		align-items: center;
	}

	.form-toggle__switch {
		flex: 1 0 auto;
	}

	.form-toggle__switch + span {
		flex: 0 1 100%;
		margin-left: 12px;
	}

	hr {
		margin: 0 -24px 1.5em;
	}

	.site-settings__other-comment-settings {
		.form-toggle__label {
			align-items: flex-start;
		}

		.form-toggle__switch {
			margin-top: 5px;
		}

		.form-toggle__switch + span {
			line-height: 26px;
		}

		.form-select {
			margin-top: 2px;
		}
	}

	.site-settings__moderation-settings {
		.form-label {
			font-weight: normal;
		}
	}
}

.site-settings__site-options {
	@include breakpoint( '>660px' ) {
		display: flex;
	}

	&:last-child {
		.site-icon-setting {
			padding-bottom: 0;
		}
	}
}

.site-settings__site-title-tagline {
	@include breakpoint( '>660px' ) {
		flex: 0 1 100%;
		order: 2;
	}
}

.site-settings__visibility-label {
	&:not( :first-child ) {
		margin-top: 15px;
	}
	&.is-checkbox:not( :only-child ) {
		margin-left: 25px;
	}
}

.site-settings__footer-credit-container {
	margin-bottom: 16px;
}

.site-settings__footer-credit-nudge.card.upgrade-nudge {
	margin: 0;
}

.site-settings__footer-credit-change {
	width: 175px;
	text-align: center;
	margin-left: 24px;
}

.site-settings__footer-credit-explanation {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
.site-settings__footer-credit-explanation p {
	margin: 0;
}

.writing-settings,
.general-settings {
	@include breakpoint( '<660px' ) {
		select {
			width: 100%;
		}
	}
}

.jetpack-protect__deactivate,
.jetpack-protect__edit-settings,
.disconnect-jetpack-button,
.jetpack-protect__edit-settings,
.disconnect-jetpack-button {
	margin-right: 8px;
}

// @TODO: Remove has-divider once all instances have been replaced with .site-settings__has-divider
.has-divider,
.site-settings__has-divider {
	margin: 0 -24px;
	padding: 24px 24px 16px;
	border: 1px var( --color-neutral-0 ) solid;
	border-width: 1px 0;

	&.is-top-only {
		border-bottom: 0;
		padding-bottom: 0;
	}

	&.is-bottom-only {
		border-top: 0;
		padding-top: 0;
	}
}

.site-settings__taxonomies {
	margin-bottom: 17px;
}

.site-settings__foldable-card {
	&.foldable-card,
	&.foldable-card.is-expanded {
		margin-bottom: 16px;
	}

	.foldable-card__header {
		padding: 24px;

		.gridicons-checkmark,
		.gridicons-notice-outline {
			margin-right: 4px;
			vertical-align: bottom;
		}

		.gridicons-checkmark {
			color: var( --color-success );
		}

		.gridicons-notice-outline {
			color: var( --color-error );
		}
	}

	.foldable-card__expand {
		width: 64px;
	}

	&.is-expanded .foldable-card__content {
		padding: 8px 24px 24px;
		border-top: 1px var( --color-neutral-10 ) solid;
	}

	&.is-expanded.is-top-level .foldable-card__content {
		padding: 24px;
	}

	.composing__module-settings .support-info,
	.protect__module-settings .support-info,
	.spam-filtering__settings .support-info {
		margin-right: -36px;
		height: 0;
	}
}

// Site settings group styles
.site-settings__module-settings {
	.form-label {
		&.is-disabled {
			opacity: 0.3;
		}
	}
}

.site-settings__child-settings {
	margin: 16px 36px 0;
}

.form-legend + .support-info {
	margin-top: -21px;
}

.site-settings__add-to-whitelist {
	margin-top: 3px;
}

.site-settings__card + .site-settings__card,
.site-settings__foldable-card + .site-settings__card,
.site-settings__foldable-card + .card.is-compact:last-child,
.site-settings__card + .card.is-compact:last-child {
	margin-top: -16px;
	margin-bottom: 16px;
}

.site-settings__general-jetpack {
	margin-bottom: 16px;
}

.site-settings__placeholder-item {
	@include placeholder();

	& + & {
		margin-top: 24px;
	}
}

button.site-settings__general-settings-set-guessed-timezone.button.is-borderless.is-compact {
	text-decoration: underline;
	color: var( --color-primary );
	font-style: inherit;
	font-weight: 400;

	&:hover,
	&:focus,
	&:active {
		color: var( --color-link-dark );
		box-shadow: none;
	}
}
.site-settings__jetpack-dev-mode-notice .notice {
	animation: none;
}

.site-settings__videopress-storage {
	.plan-storage__bar {
		margin-top: 24px;
	}

	// Necessary additional specificity
	.site-settings__videopress-storage-used.form-setting-explanation {
		margin-left: 36px;
	}
}

.site-settings__search-block {
	margin-bottom: 16px;
}

.site-settings__speed-up-site-settings {
	p.site-settings__feature-description {
		margin-top: 0;
		margin-bottom: 1.5em;
	}
}

.site-settings__general-settings-launch-site {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1px;
}

.site-settings__general-settings-launch-site-text {
	flex-grow: 2;
}

.site-settings__general-settings-launch-site-button {
	margin-left: 20px;
	white-space: nowrap;
}

.site-settings__disable-privacy-settings {
	opacity: 0.33;
	pointer-events: none;
}

.site-settings__writing-settings {
	.theme-enhancements__card {
		.form-fieldset.minileven {
			&.inactive {
				p, .form-toggle__label, .support-info {
					opacity: 0.3;
					transition: all 0.75s;
				}
			}
		}
	}
}
